// import './assets/main.css'//格式基础

import { createApp } from 'vue'
import App from './App.vue'
import HmButton from './components/HmButton.vue'
import router from './router'
import {createPinia} from 'pinia'
import persistedstate from 'pinia-plugin-persistedstate'
const application=createApp(App)//应用对象
//挂载之前注册全局组件
const pinia = createPinia()
pinia.use(persistedstate) // 注册持久化插件
application.component('HmButton',HmButton)
//所有的注册都得在挂载之前做
application.use(router)//注册路由对象
application.use(pinia)
// createApp(App).mount('#app')

application.mount('#app') // 挂载到元素上
